.class abstract Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;
.super Ljava/lang/Object;


# instance fields
.field private attribute:Z

.field private attributes:Ljava/lang/String;

.field private cdataEnabled:Z

.field private className:Ljava/lang/String;

.field private elementName:Ljava/lang/String;

.field private pojoXmlInitInfo:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

.field private space:I

.field private stringFound:Z

.field private xmlContent:Ljava/lang/StringBuffer;


# direct methods
.method public constructor <init>()V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, ""

    iput-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->attributes:Ljava/lang/String;

    iput-boolean v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->attribute:Z

    iput-boolean v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->cdataEnabled:Z

    iput-boolean v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->stringFound:Z

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    iput-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->xmlContent:Ljava/lang/StringBuffer;

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;ILcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V
    .locals 1

    const-string v0, ""

    invoke-direct {p0, p1, v0, p2, p3}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;-><init>(Ljava/lang/String;Ljava/lang/String;ILcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;ILcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, ""

    iput-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->attributes:Ljava/lang/String;

    iput-boolean v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->attribute:Z

    iput-boolean v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->cdataEnabled:Z

    iput-boolean v1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->stringFound:Z

    invoke-virtual {p0, p4}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->setPojoXmlInitInfo(Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->elementName:Ljava/lang/String;

    iput-object p2, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->attributes:Ljava/lang/String;

    iput p3, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->space:I

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    iput-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->xmlContent:Ljava/lang/StringBuffer;

    return-void
.end method


# virtual methods
.method protected createEmptyElementWithNL(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getAliasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p2, p3}, Lcom/wqmobile/sdk/pojoxml/util/XmlUtil;->createEmptyElementWithNL(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public decrementSpace()V
    .locals 2

    iget v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->space:I

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->space:I

    return-void
.end method

.method public getAliasName(Ljava/lang/String;)Ljava/lang/String;
    .locals 3

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->pojoXmlInitInfo:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getClassName()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "."

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;->getAliasName(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_0

    move-object v0, p1

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public getAttributes()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->attributes:Ljava/lang/String;

    return-object v0
.end method

.method public getClassAliasName(Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->pojoXmlInitInfo:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    invoke-virtual {v0, p1}, Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;->getAliasName(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public getClassName()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->className:Ljava/lang/String;

    return-object v0
.end method

.method protected getCloseTag(Ljava/lang/String;I)Ljava/lang/String;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getAliasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p2}, Lcom/wqmobile/sdk/pojoxml/util/XmlUtil;->getCloseTag(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected getCloseTagWithNL(Ljava/lang/String;I)Ljava/lang/String;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getAliasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p2}, Lcom/wqmobile/sdk/pojoxml/util/XmlUtil;->getCloseTagWithNL(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getElementName()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->elementName:Ljava/lang/String;

    return-object v0
.end method

.method protected getElementWithNL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getAliasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p2, p3, p4}, Lcom/wqmobile/sdk/pojoxml/util/XmlUtil;->getElementWithNL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getPojoXmlInitInfo()Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->pojoXmlInitInfo:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    return-object v0
.end method

.method public getSpace()I
    .locals 1

    iget v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->space:I

    return v0
.end method

.method protected getStartTag(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getAliasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p2, p3}, Lcom/wqmobile/sdk/pojoxml/util/XmlUtil;->getStartTag(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected getStartTagWithNL(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getAliasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p2, p3}, Lcom/wqmobile/sdk/pojoxml/util/XmlUtil;->getStartTagWithNL(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getXmlContent()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->xmlContent:Ljava/lang/StringBuffer;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public incrementSpace()V
    .locals 1

    iget v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->space:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->space:I

    return-void
.end method

.method public isAttribute()Z
    .locals 1

    iget-boolean v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->attribute:Z

    return v0
.end method

.method public isCdataEnabled()Z
    .locals 1

    iget-boolean v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->cdataEnabled:Z

    return v0
.end method

.method public isEmptyElement(Ljava/lang/Object;Ljava/lang/String;)Z
    .locals 2

    if-nez p1, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->attributes:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getSpace()I

    move-result v1

    invoke-virtual {p0, p2, v0, v1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->createEmptyElementWithNL(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->writeXmlContent(Ljava/lang/String;)V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isEmptyElement(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1

    if-nez p1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isStringFound()Z
    .locals 1

    iget-boolean v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->stringFound:Z

    return v0
.end method

.method public abstract process(Ljava/lang/Object;)Ljava/lang/String;
.end method

.method public processCollection(Ljava/lang/Object;)V
    .locals 2

    new-instance v0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/b;

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getSpace()I

    move-result v1

    invoke-direct {v0, v1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/b;-><init>(I)V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->isCdataEnabled()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/b;->setCdataEnabled(Z)V

    invoke-virtual {v0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/b;->process(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->writeXmlContent(Ljava/lang/String;)V

    return-void
.end method

.method public processObject(Ljava/lang/Object;)V
    .locals 3

    new-instance v0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getSpace()I

    move-result v1

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getPojoXmlInitInfo()Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;-><init>(ILcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->isCdataEnabled()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;->setCdataEnabled(Z)V

    invoke-virtual {v0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;->process(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->writeXmlContent(Ljava/lang/String;)V

    return-void
.end method

.method public processObject(Ljava/lang/Object;Ljava/lang/String;)V
    .locals 4

    new-instance v0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getSpace()I

    move-result v1

    invoke-virtual {p0, p2}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getAliasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getPojoXmlInitInfo()Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    move-result-object v3

    invoke-direct {v0, v1, v2, v3}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;-><init>(ILjava/lang/String;Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->isCdataEnabled()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;->setCdataEnabled(Z)V

    invoke-virtual {v0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;->process(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->writeXmlContent(Ljava/lang/String;)V

    return-void
.end method

.method public processObject(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)V
    .locals 4

    new-instance v0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;

    invoke-virtual {p0, p2}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getAliasName(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getSpace()I

    move-result v2

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->getPojoXmlInitInfo()Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    move-result-object v3

    invoke-direct {v0, v1, p3, v2, v3}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;-><init>(Ljava/lang/String;Ljava/lang/String;ILcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V

    invoke-virtual {v0, p3}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;->setAttributes(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->isCdataEnabled()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;->setCdataEnabled(Z)V

    invoke-virtual {v0, p1}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/ClassToXmlProcessor;->process(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->writeXmlContent(Ljava/lang/String;)V

    return-void
.end method

.method public setAttribute(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->attribute:Z

    return-void
.end method

.method public setAttributes(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->attributes:Ljava/lang/String;

    return-void
.end method

.method public setCdataEnabled(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->cdataEnabled:Z

    return-void
.end method

.method public setClassName(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->className:Ljava/lang/String;

    return-void
.end method

.method public setElementName(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->elementName:Ljava/lang/String;

    return-void
.end method

.method public setPojoXmlInitInfo(Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->pojoXmlInitInfo:Lcom/wqmobile/sdk/pojoxml/core/PojoXmlInitInfo;

    return-void
.end method

.method public setSpace(I)V
    .locals 0

    iput p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->space:I

    return-void
.end method

.method public setStringFound(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->stringFound:Z

    return-void
.end method

.method public setXmlContent(Ljava/lang/StringBuffer;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->xmlContent:Ljava/lang/StringBuffer;

    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->xmlContent:Ljava/lang/StringBuffer;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public writeXmlContent(Ljava/lang/String;)V
    .locals 1

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/pojoxml/core/processor/pojotoxml/c;->xmlContent:Ljava/lang/StringBuffer;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_0
    return-void
.end method
